package Err

import "cade/src/core"

var code2text = map[int32]string{
	200: "Chat_TextTooLong",
	201: "Chat_RoomNotFound",
	202: "Chat_AlreadyInRoom",
	203: "Chat_RoomExists",
	204: "Chat_NotInTheRoom",
}

func GetErrorText(ec int32) string {
	s := code2text[ec]
	if s == "" {
		return core.I32toa(ec)
	} else {
		return s
	}
}
